﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class GameData : MonoBehaviour
{
    public int gradeData=7;//目录等级
    public int player=0;//玩家等级
    public int combatLevel = 0;//战斗等级,负责对应的怪物数量和种类
    public int combatMaxValue=0;//判断战斗等级当前最大值
    public int goldCoin=200;//金币
    public int experience;//经验值
    public int subjectNumber = 0;
    public int empirical = 0;//玩家经验值
    //角色血量
    public int roleBlood1;
    public int roleBlood2;
    public int roleBlood3;
    //角色攻击力
    public int roleAttack1;
    public int roleAttack2;
    public int roleAttack3;
    //角色等级
    public int roleHierarchy1;
    public int roleHierarchy2;
    public int roleHierarchy3;
    //角色经验
    public int roleEmpirical1;
    public int roleEmpirical2;
    public int roleEmpirical3;
    //物品数量
    public int[] goods = { 1, 1, 1 };


    public int dialogueValue = 1;

    public int rolePoint;//网络对战选择的角色
    public int skillnumber;//技能下标
    public int firstHand;//随机数
    public int round;//回合
    public int eneryPoint;//敌方角色
    private void Awake()
    {
        goldCoin = 200;
    }

    // Start is called before the first frame update
    void Start()
    {
        //跨越场景
        DontDestroyOnLoad(gameObject);
        One();
        goods[0] = 1;
        goods[1] = 1;
        goods[2] = 1;

    }

    //实验
    void One()
    {
        roleBlood1 = 100;
        roleBlood2 = 100;
        roleBlood3 = 100;
        roleAttack1 = 10;
        roleAttack2 = 10;
        roleAttack3 = 10;
        roleHierarchy1 = 1;
        roleHierarchy2 = 1;
        roleHierarchy3 = 1;

    }

    // Update is called once per frame
    void Update()
    {
        
    }
}
